/*
 * app_UART.h
 *
 *  Created on: 2018.10.30
 *      Author: zhangyu
 *      MCU use UART to exchange data with imax6
 */

#ifndef USER_APP_APP_UART_H_
#define USER_APP_APP_UART_H_

typedef struct UART_COM_HEADER{
	uint8_t 	version;			//interval communication protocol version	default 0xF1
	uint8_t		len;				//the hold package byte length
	uint8_t		type;				//type=0: response, type=1:request
	uint8_t		RSVD[3];			//reserved control datas

									/*
									 * ID = 0: indicate MCU firmware version
									 *
									 * */
	uint8_t 	funcId;				//id: function id

	uint8_t		cmd;				//cmd: request or response result
}UART_COM_HEADER;


void TASK_UART( void *pvParameters );
#endif /* USER_APP_APP_UART_H_ */
